<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<script>
    methods: {
        getLocation(phoneNum) {
            return axios.post('/one接口', {
                phoneNum
            })
        },
        getFaceList(province, city) {
            return axios.post('/two接口', {
                province,
                city
            })
        },
        getFaceResult () {
            this.getLocation(this.phoneNum).then(res => {
                if (res.status === 200 && res.data.success) {
                    let province = res.data.obj.province;
                    let city = res.data.obj.city;
                    this.getFaceList(province, city).then(res => {
                        if(res.status === 200 && res.data.success) {
                            this.faceList = res.data.obj
                        }
                    })
                }
            }).catch(err => {
                console.log(err)
            })
        }

      async  getFaceResult () {

            try
          let res=await getLocation(this.phone);
          if (res){
             let towvalu= await getFaceList(res.province, res.city);
             if(){
                 this.faceList = res.data.obj
             }
          }


        }

    }




</script>



</body>
</html>